<!DOCTYPE html>
<html>
<?php echo $this->fetch('head.html'); ?>
<body>
<div class="fullscreen">
  <div class="scroll_content">
  <div class="topfixed">
    	<div class="t_left"><a href="/index.php?m=ymdian_order&a=my"><i class="back"></i></a></div>
      <div class="t_main">夜猫订单详情</div>
       
    </div>
    <div class="paddingheight"></div>
    
    <div class="comblock">
                <div class="order_state_text clearfix">
                    <span class="fl">单号：<?php echo $this->_var['data']['orderno']; ?></span>
                    <span class="fr">状态：<?php echo $this->_var['order_status_list'][$this->_var['data']['status']]; ?></span>
                </div>
    </div> 
            
     
     <ul class="cart_new_list clearfix">
                <li>
					<?php $_from = $this->_var['order_product']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'p');if (count($_from)):
    foreach ($_from AS $this->_var['p']):
?>
                    <div class="list clearfix">
                        <div class="cart_pic"><a href="javascript:;"><img src="<?php echo images_site($this->_var['p']['imgurl']); ?>.100x100.jpg" class="img"></a></div>
                        <div class="cart_content">
                            <div class="tit"><?php echo $this->_var['p']['title']; ?></div>
                            <div class="info">
                                <p class="fl"><span class="red">￥<?php echo $this->_var['p']['price']; ?></span></p>

                                <p class="fr"><b class="red">× <?php echo $this->_var['p']['amount']; ?></b></p>
                            </div>
                        </div>
                    </div>
                    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                     
                    <div class="cart_total">共<?php echo $this->_var['total_num']; ?>件，
                        合计：<b class="red">￥<?php echo $this->_var['data']['money']; ?></b></div>

                    <div class="cart_change_notice" style="margin: 0 10px;">
                        <textarea class="area" disabled="">备注：<?php echo $this->_var['data']['comment']; ?></textarea>
                    </div>
                </li>
            </ul>
     
      <div class="comblock">
                <div class="order_state_text">
                    姓名：：<?php echo $this->_var['addr']['truename']; ?><br>
                    手机：<?php echo $this->_var['addr']['telephone']; ?><br>
                    地址：<span class="red"><?php echo $this->_var['addr']['p_c_t']; ?>-<?php echo $this->_var['addr']['sushe']; ?>寝室</span>
                </div>
            </div>
            
    <div class="comblock">
                <div class="order_state_text">
                    店铺：<a href="/index.php?m=ymdian&id=<?php echo $this->_var['shop']['id']; ?>"><?php echo $this->_var['shop']['title']; ?></a><br>
                    优惠额：<span class="green"><?php echo $this->_var['data']['coupon_money']; ?></span> <br>
                    下单时间：<?php echo date("Y-m-d H:i:s",$this->_var['data']['dateline']); ?><br>
                    配送时间：18:00-22:00<br>
                    付款方式：<span class="red"><?php if ($this->_var['data']['unpay']): ?>货到付款<?php else: ?> <?php echo $this->_var['order_ispay'][$this->_var['data']['ispay']]; ?>   <?php if (! $this->_var['data']['unpay'] && $this->_var['data']['ispay'] == 1): ?><a href="/index.php?m=ymdian_order&a=pay&order_id=<?php echo $this->_var['data']['order_id']; ?>">去支付</a><?php endif; ?><?php endif; ?> </span>
                </div>

            </div>
    
            
   <?php if ($this->_var['data']['status'] == 0): ?>
        <a href="/index.php?m=ymdian_order&a=cancel&order_id=<?php echo $this->_var['data']['order_id']; ?>" class="global_btn cancel">取消订单</a> <br>
        <?php endif; ?>
        <?php if ($this->_var['data']['status'] == 2): ?>
        <a href="tel:<?php echo $this->_var['data']['kdy_telephone']; ?>" class="global_btn">联系配送员</a> <br>
        <?php endif; ?>
        
     
     
     
     
  
  <?php echo $this->fetch('footer.html'); ?> </div>
</body>
</html>